<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<meta charset="utf-8">
<title>${title}</title>

<link rel="stylesheet" type="text/css"
	href="<spring:url value="/web/css/bootstrap.css"/>" />
<link rel="stylesheet" type="text/css"
	href="<spring:url value="/web/css/bootstrap-responsive.css"/>" />
<link rel="stylesheet" type="text/css"
	href="<spring:url value="/web/css/style.css"/>" />

</head>

<body>

	<div class="container">
		<div class="masthead">
			<%
				String style = "";
				if (request.getAttribute("username") == null)
					style = "style='display: none;'";
				else
					style = "style='display: block;'";
			%>
			<table class="header-table">
				<tr>
					<td rowspan="2"><h3 class="muted">Family Shoplist</h3></td>
					<td <%=style%> class="td-right">Logged in as <b id="username">${username}</b></td>
				</tr>
				<tr>
					<td <%=style%> class="td-right"><a
						href="<spring:url value="/j_spring_security_logout" />"> Logout</a></td>
				</tr>
				<!-- navbar -->
			</table>
			<div class="navbar">
				<div class="navbar-inner">
					<div class="container">
						<ul class="nav">
							<c:forEach var="type" items="${navigation}">
								<li><a href="<spring:url value="${type.value}"/>">${type.key}</a></li>
							</c:forEach>
						</ul>
					</div>
				</div>
			</div>
			<!-- /navbar -->
		</div>
		